<template>
	<view>
		<view class="navigationBar" :style="{height:navHeight*2 + 'rpx'}">
			<view class="title" :style="{height:menuButtonHeight*2 + 'rpx', marginTop:menuButtonTop*2-5 + 'rpx'}">
				{{title}}
			</view>
		</view>
	</view>
</template>

<script>
	// 获取app实例
	const app = getApp()

	export default {
		name: "login_navigationBar",
		props: {
			title: String
		},
		data() {
			return {
				// 导航的总高度
				navHeight: 0,
				// 胶囊的top位置
				menuButtonTop: 0,
				// 胶囊的高度
				menuButtonHeight: 0
			};
		},
		mounted() {
			this.navHeight = app.globalData.navHeight
			this.menuButtonTop = app.globalData.menuButtonTop
			this.menuButtonHeight = app.globalData.menuButtonHeight
		}
	}
</script>

<style scoped lang="scss">
	.navigationBar {
		display: flex;
		background-color: #d3b8a7;
		color: white;
		justify-content: center;
		align-items: center;
		box-sizing: border-box;
		// padding-top: 62rpx;
		position: fixed;
		top: 0;
		width: 100vw;
		font-size: 34rpx;
		font-weight: 500;
		z-index: 100;
	}
</style>
